package com.dc.dbus.transport.netty.client.node;

import java.util.Arrays;

public class NodeInfo {
	
	public final String serviceName;
	public final String nodeName;
	public String[] routers;
	public final String[] hosts;
	public final int[] ports;
	
	public NodeInfo(String serviceName, String nodeName, String[] routers, String[] hosts, int[] ports) {
		super();
		this.serviceName = serviceName;
		this.nodeName = nodeName;
		this.routers = routers;
		this.hosts = hosts;
		this.ports = ports;
	}

	@Override
	public String toString() {
		return "NodeInfo{" +
				"serviceName='" + serviceName + '\'' +
				", nodeName='" + nodeName + '\'' +
				", routers=" + Arrays.toString(routers) +
				", hosts=" + Arrays.toString(hosts) +
				", ports=" + Arrays.toString(ports) +
				'}';
	}
}